home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
pascal
/
swag
/
egavga.swg
/
0078_Clear Screen in Mode $13.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1993-11-02
|
341 b
|
21 lines
{
WILLIAM MCBRINE
> I am looking For a Procedure to clear a screen in mode $13. Writing
> black pixels to each position isn't quite fast enough!
This assumes that color 0 is black.
}
Procedure clearmode13; Assembler;
Asm
cld
mov ax, $A000
mov es, ax
xor di, di
xor ah, ah
mov cx, 32000
rep stosw
end;